package com.goat.train.member;

import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.core.env.ConfigurableEnvironment;

@Slf4j
@SpringBootApplication
@ComponentScan(basePackages = {"com.goat.train"})
@MapperScan("com.goat.train.member.mapper")
public class MainApplication {
    public static void main(String[] args) {
        SpringApplication application = new SpringApplication(MainApplication.class);
        ConfigurableEnvironment environment = application.run(args).getEnvironment();
        log.info("member模块启动成功！！！");
        log.info("测试地址：\thttp://127.0.0.1:{}{}/test/hello",environment.getProperty("server.port")
                ,environment.getProperty("server.servlet.context-path"));
    }
}
